package libsys.general;

import libsys.general.LIBSYSSystem;
import libsys.gui.items.SettingsFontsAndColorsPanelItems;

public class SettingsPanelsDesigner
{
		LIBSYSSystem LibrarySystem;
		
		public SettingsPanelsDesigner(LIBSYSSystem LibrarySystem)
		{
				this.LibrarySystem = LibrarySystem;
		}
		
		public void loadSettingsFontsPanel()
		{
				LibrarySystem.FrameItems.settingsFrameItems.tab_panel.removeAll();
				LibrarySystem.FrameList.SettingsFrame.repaint();
				
				javax.swing.GroupLayout previewscrollpaneholder_panelLayout = new javax.swing.GroupLayout(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.previewscrollpaneholder_panel);
                                LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.previewscrollpaneholder_panel.setLayout(previewscrollpaneholder_panelLayout);
                                previewscrollpaneholder_panelLayout.setHorizontalGroup(
                                                previewscrollpaneholder_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.preview_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 316, Short.MAX_VALUE)
                                );
                                previewscrollpaneholder_panelLayout.setVerticalGroup(
                                                previewscrollpaneholder_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.preview_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE)
                                );

                                javax.swing.GroupLayout preview_panelLayout = new javax.swing.GroupLayout(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.preview_panel);
                                LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.preview_panel.setLayout(preview_panelLayout);
                                preview_panelLayout.setHorizontalGroup(
                                                preview_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(preview_panelLayout.createSequentialGroup()
                                                                .addContainerGap()
                                                                .addGroup(preview_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                                .addGroup(preview_panelLayout.createSequentialGroup()
                                                                                                .addGroup(preview_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                                                                .addGroup(preview_panelLayout.createSequentialGroup()
                                                                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontface_label, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                                                                                                                .addGroup(preview_panelLayout.createSequentialGroup()
                                                                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontsize_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                                                                                                .addGap(39, 39, 39)))
                                                                                                .addGroup(preview_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontfacelist_combobox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                .addGroup(preview_panelLayout.createSequentialGroup()
                                                                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontsize_spinner, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                .addGap(59, 59, 59)
                                                                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontstyle_label, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                                                .addGap(10, 10, 10)
                                                                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontstyle_combobox, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                                                                .addContainerGap(38, Short.MAX_VALUE))
                                                                                .addGroup(preview_panelLayout.createSequentialGroup()
                                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontcolor_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                .addContainerGap())
                                                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, preview_panelLayout.createSequentialGroup()
                                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.applychanges_btn, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                .addContainerGap())
                                                                                .addGroup(preview_panelLayout.createSequentialGroup()
                                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.previewscrollpaneholder_panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                                .addContainerGap(92, Short.MAX_VALUE))
                                                                                .addGroup(preview_panelLayout.createSequentialGroup()
                                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.previewchange_label, javax.swing.GroupLayout.DEFAULT_SIZE, 157, Short.MAX_VALUE)
                                                                                                .addGap(251, 251, 251))))
                                );
                                preview_panelLayout.setVerticalGroup(
                                                preview_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(preview_panelLayout.createSequentialGroup()
                                                                .addContainerGap()
                                                                .addGroup(preview_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontface_label)
                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontfacelist_combobox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                .addGap(28, 28, 28)
                                                                .addGroup(preview_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontsize_label)
                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontsize_spinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontstyle_label)
                                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontstyle_combobox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                .addGap(39, 39, 39)
                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fontcolor_btn)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 58, Short.MAX_VALUE)
                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.previewchange_label)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.previewscrollpaneholder_panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                .addGap(18, 18, 18)
                                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.applychanges_btn)
                                                                .addContainerGap())
                                );                                

                                javax.swing.GroupLayout tab_panelLayout = new javax.swing.GroupLayout(LibrarySystem.FrameItems.settingsFrameItems.tab_panel);
                                LibrarySystem.FrameItems.settingsFrameItems.tab_panel.setLayout(tab_panelLayout);
                                tab_panelLayout.setHorizontalGroup(
                                                tab_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fonts_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)
                                );
                                tab_panelLayout.setVerticalGroup(
                                                tab_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(LibrarySystem.FrameItems.settingsFontsAndColorsPanelItems.fonts_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)
                                );
		}
}